﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using ConsolidationTool.Common;

namespace ConsolidationTool.WebParts.ControlTemplates
{
    public partial class CommonButtomAction : FSUserControlBase
    {
        protected void Page_Load(object sender, EventArgs e)
        { 
        }

        public delegate void SaveButtonClickHandler(object sender, EventArgs e);
        public event SaveButtonClickHandler SaveButtonClicked;

        /*ESNewForm.aspx?
         * List=bd3e8b64%2Dd4e1%2D4cf2%2D97a2%2De31f88cb2e12&
         * RootFolder=&
         * IsDlg=1&
         * Web=d50cd4fc%2D61d7%2D49c6%2D9789%2D8ae59ad76f93*/
        protected void btSave_Click(object sender, EventArgs e)
        {
            if (SaveButtonClicked != null)
                SaveButtonClicked(sender, e);

        }

        protected void btCancel_Click(object sender, EventArgs e)
        {
            Utilities.CloseForm(); 
        }
    }
}
